import { Meta } from '@storybook/blocks';

import * as SwitchStories from '../stories/Switch.stories';

<Meta of={SwitchStories} />

# Switch

A material design switch.

## Example

```dart liveslice=Switch
bool _value = true;

Switch(
  value: _value,
  onChanged: (bool newValue) {
    setState(() {
      _value = newValue;
    });
  },
)
```

## Related Links

- https://api.flutter.dev/flutter/material/Switch-class.html
